package com.hy.service;

import com.hy.bean.RespBean;
import com.hy.dto.OrdersDto;
import com.hy.dto.OrdersPartsDto;

import java.util.List;
import java.util.Map;

/**
* @author ZZW
* @description 针对表【orderstable】的数据库操作Service
* @createDate 2024-05-14 22:02:54
*/
public interface OrderstableService {
    /**
     * 根据订单状态查询
     * @param
     * @return
     */
    RespBean queryAll(String status,Integer page,Integer limit);
    RespBean queryAllStatus(String status,Integer page,Integer limit);
    RespBean queryAll2(String okstatus,Integer page,Integer limit);
    List<Map<String, Object>> select(String code, String beginDate, String endDate, String creator);

    List<Map<String, Object>> select();

    RespBean listOrders();

    RespBean listOrdersAndOrdersParts(Integer id);
    RespBean queryById(Integer id);
    RespBean add(OrdersDto ordersDto);
    RespBean update(OrdersPartsDto ordersDto);
    RespBean audit(Integer id,Integer lastUpdatePerson, String status);
}
